import Mock from 'mockjs';
import API from '../api/index'

/**
 * @doc Mock.mock(url,post/get,callback)
 * @param {String} url 请求路径
 * @param {String} post/get 请求方式
 * @param {Function} callback 返回数据的 mock 函数
 * @author xuqiang
 */

import {login} from './userServiceMock'
import {trafficHubVolume,roadTransportation,trafficNetwork1,trafficNetwork2,transportInfrastructure,yearDayPassengerVolume,dailyTrafficMonitoring,weatherDonitoring,winningStatistics} from './homeServiceMock'

Mock.mock( API.baseUrl.domainName + API.user.login,login ); //mock登录模拟示例

Mock.mock( API.baseUrl.domainName + API.home.trafficHubVolume,trafficHubVolume );
Mock.mock( API.baseUrl.domainName + API.home.roadTransportation,roadTransportation );
Mock.mock( API.baseUrl.domainName + API.home.trafficNetwork1,trafficNetwork1 );
Mock.mock( API.baseUrl.domainName + API.home.trafficNetwork2,trafficNetwork2 );
Mock.mock( API.baseUrl.domainName + API.home.transportInfrastructure,transportInfrastructure );
Mock.mock( API.baseUrl.domainName + API.home.yearDayPassengerVolume,yearDayPassengerVolume );
Mock.mock( API.baseUrl.domainName + API.home.dailyTrafficMonitoring,dailyTrafficMonitoring );
Mock.mock( API.baseUrl.domainName + API.home.weatherDonitoring,weatherDonitoring );
Mock.mock( API.baseUrl.domainName + API.home.winningStatistics,winningStatistics );

export default  Mock;